package com.github.chirspan.xaas.auth.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * *******description*******
 * 微信小程序配置文件
 * *************************
 *
 * @author chenpan
 * @date 2020/2/19 13:47
 */
@Configuration
@ConfigurationProperties(prefix = "wx.mini", ignoreInvalidFields = true, ignoreUnknownFields = true)
@Data
public class MxMiniConfig {

    public static final String WX_LOGIN_URL = "https://api.weixin.qq.com/sns/jscode2session";

    public static final String WX_LOGIN_GRANT_TYPE = "authorization_code";

    private String appId;

    private String secret;
}
